import random

CARDSUIT = [_ for _ in "CDHS"]
CARDRANK = [_ for _ in "23456789TJQKA"]
POINT = {
    'A': 4,
    'K': 3,
    'Q': 2,
    'J': 1
}

if __name__ == "__main__":
    cards = set()
    while len(cards) < 13:
        cards.add((random.choice(CARDSUIT), random.choice(CARDRANK)))
    print(cards)
    point = 0
    for card in cards:
        point += POINT.get(card[1], 0)
    print(point)